<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html">
    <h:form id="confirmNewSalesInquiryForm">

        <h:outputText style="font-weight: bold" value="Sales Inquiry Id: " />
        <h:outputText value="#{salesInquiryBean.salesInquiryId}">
        </h:outputText>
        <br/>

        <h:outputText style="font-weight: bold" value="Issuance Date and Time: " />
        <h:outputText value="#{salesInquiryBean.dateTime}">
        </h:outputText>

        <br/>
        <br/>
        <h:outputText style="font-weight: bold" value="List of Items" />
        <h:dataTable cellpadding="6px" cellspacing="24px" styleClass="allaroundborder" headerClass="allaroundborder" columnClasses="allaroundborder"
                     rowClasses="allaroundborder" value="#{salesInquiryBean.salesInquiryItems}" var="salesInquiryItem">

            <h:column>
                <f:facet name="header">
                    <h:outputText value="Item Id" />
                </f:facet>
                <h:outputText value="#{salesInquiryItem.id}" />
            </h:column>

            <h:column>
                <f:facet name="header">
                    <h:outputText value="Item Name" />
                </f:facet>
                <h:outputText value="#{salesInquiryItem.productName}" />
            </h:column>

            <h:column>
                <f:facet name="header">
                    <h:outputText value="Quantity of Product" />
                </f:facet>
                <h:outputText value="#{salesInquiryItem.numOfProduct}" />
            </h:column>

            <h:column>
                <f:facet name="header">
                    <h:outputText value="Product Price" />
                </f:facet>
                <h:outputText value="#{salesInquiryItem.productPrice}" />
            </h:column>

        </h:dataTable>
        <h:commandButton action="index.xhtml" value="Return to index" actionListener="#{salesInquiryBean.resetAfterConfirmSalesInquiry}"/>
    </h:form>
</ui:composition>
